import com.eastcom.collection.tools.common.ShellExecutor

//Properties properties = System.getProperties();
//System.out.println(properties.getProperty("os.name"));
//if (properties.getProperty("os.name").contains("Windows")) {
//    try {
//        BufferedReader bis = new BufferedReader(new FileReader(initShellFile));
//        StringBuffer stringBuffer = new StringBuffer();
//        String line = bis.readLine();
//        while (line != null) {
//            stringBuffer.append(line + "\n");
//            line = bis.readLine();
//        }
//        System.out.println(stringBuffer.toString());
//        ShellExecutor shellExecutor = new ShellExecutor(stringBuffer.toString(), false);
//        shellExecutor.exec();
////                    shellExecutor.WaitForExec();
//    } catch (FileNotFoundException e) {
//        e.printStackTrace();
//    } catch (IOException e) {
//        e.printStackTrace();
//    }
//
//} else {
//    ShellExecutor shellExecutor = new ShellExecutor(new File(initShellFile));
//    shellExecutor.exec();
//}

//ShellExecutor shellExecutor = new ShellExecutor("java -jar C:\\db-derby-10.10.2.0-bin\\lib\\derbyrun.jar server start",false);
//shellExecutor.exec();
println "初始化中..."
try {
    Thread.sleep(1000);
} catch (InterruptedException e) {
    e.printStackTrace();
}